namespace BusinessLogic.Mappers.Currency.Mapping
{
	internal class CurrencyMapping : IMapping<BusinessEntity.Entities.Currency, DataControl.Currency>
	{
		public BusinessEntity.Entities.Currency ToBE(DataControl.Currency from)
		{
			var to = new BusinessEntity.Entities.Currency();
			
			to.Code = from.Code;
			to.ID = from.ID;
			to.Name = from.Name;

			return to;
		}

		public DataControl.Currency ToDTO(BusinessEntity.Entities.Currency from)
		{
			var to = new DataControl.Currency();

			to.Code = from.Code;
			to.ID = from.ID;
			to.Name = from.Name;

			return to;
		}
	}
}